package com.example.travel.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.travel.domain.entity.Role;
import com.example.travel.domain.entity.RoleMenu;


import java.util.List;

/**
 * @Author : LinQingLiang
 * @file : RoleService.java
 * @Since : 2023/1/30 21:24
 */
public interface RoleService extends IService<Role> {

    Page page(Role role, Integer pageNum, Integer pageSize);

    void roleBindMenu(Integer roleId, List<Integer> menuIds);

    List<Integer> selectByRoleId(Integer roleId);

    Integer selectByFlag(String flag);
}
